projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c9b47
)
(mouse-yank-secondary): Nice error msg if no secondary sel.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 13 Mar 2008 15:29:11 +0000
(15:29 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 13 Mar 2008 15:29:11 +0000
(15:29 +0000)
lisp/mouse.el
patch
|
blob
|
history
diff --git
a/lisp/mouse.el
b/lisp/mouse.el
index 27bf00ce26763b40e508ffb9be382a44d7eaeed4..d0ce18dc519a9eac331945d2397cb8b3c65f66da 100644
(file)
--- a/
lisp/mouse.el
+++ b/
lisp/mouse.el
@@
-1642,7
+1642,10
@@
regardless of where you click."
;; Give temporary modes such as isearch a chance to turn off.
(run-hooks 'mouse-leave-buffer-hook)
(or mouse-yank-at-point (mouse-set-point click))
- (insert (x-get-selection 'SECONDARY)))
+ (let ((secondary (x-get-selection 'SECONDARY)))
+ (if secondary
+ (insert (x-get-selection 'SECONDARY))
+ (error "No secondary selection"))))
(defun mouse-kill-secondary ()
"Kill the text in the secondary selection.